-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation block: fix block appender size #66153
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +15 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the attention to detail here @t-hamano 🕵️
In terms of this being a quick fix for 6.7, it works for me. The issue referenced in the linked code comment has been closed so it might be good to spin up a fresh issue for a longer term fix, so it won't fall through the cracks.
Before | After |
---|---|
Thanks for the review!
Submitted 👍 |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 97e96d7 |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: aaronrobertshaw <[email protected]>
What?
This PR changes the height of the navigation block inserter so that it is an exact square.
Why?
As part of an effort to standardize buttons to a default 40px size, #65225 added
__next40pxDefaultSize
to the block appender. Normal block appenders are correct to be 40px in size, but the Navigation block is expected to be 24px as before.How?
Override the default 40px height with a 24px height. This is a temporary fix for WP 6.7, we may need to update to the dropdown appender in the feature as this comment indicates.
Testing Instructions
Select the Navigation block and Submenu block and check the size of the block appenders.
Screenshots or screencast
Before
After